home *** CD-ROM | disk | FTP | other *** search
- Path: cnn.exu.ericsson.se!news
- From: ebumow@ebu.ericsson.com (Mickey Williams 66753)
- Newsgroups: comp.lang.c++
- Subject: Re: Pure Virtual Destructor Question
- Date: 9 Feb 1996 18:11:29 GMT
- Organization: Ericsson Inc.
- Distribution: world
- Message-ID: <4fg2oh$r02@cnn.exu.ericsson.se>
- References: <4fas7a$7ns@comet2.magicnet.net>
- Reply-To: ebumow@ebu.ericsson.com
- NNTP-Posting-Host: franklin.ebu.ericsson.se
-
- In article 7ns@comet2.magicnet.net, gamecox@magicnet.magicnet.net (Jody Hagins) writes:
- >Assume a class Foo s.t.
-
- [snipped - class with pure virtual dtor]
-
- >This is correct, and compiles fine. However, I get a warning:
- >"foo.h", : warning: please provide an out-of-line definition: Foo::~Foo() {};
- >hich is needed by derived classes
-
- It's just a warning. Your compiler is probably trying to tell
- you that you waon't get any inline benifits from this dtor.
-
- >
- >Even when I make it non inline (in foo.C) I still get it.
-
- Get a better compiler. Your code is well-formed.
-
- Hope this helps
- ------
- Mickey Williams
- Author of: - Essential Visual C++ 4
- - Develop a Professional Visual C++ Application in 21 Days
-
-
-
-
-
-
-